package com.howtodoinjava;

import java.util.Date;

import com.howtodoinjava.model.GuestUser;

public class ToStringDemoUsage 
{
	public static void main(String[] args) 
	{
		/*WebUser user = getWebUser();
		System.out.println(user);*/
		
		GuestUser guest = getGuestUser();
		System.out.println(guest);

		System.out.println("1 boolean is " + Boolean.getBoolean("1"));
		System.out.println("0 boolean is " + Boolean.getBoolean("0"));
	}
	
	/*public static WebUser getWebUser()
	{
		WebUser user = new WebUser();
		user.setId(100);
		user.setFirstName("Lokesh");
		user.setLastName("Gupta");
		user.setAge("30");
		user.setLastLoggedIn(new Date());
		return user;
	}
	*/
	public static GuestUser getGuestUser()
	{
		GuestUser user = new GuestUser();
		user.setId(100);
		user.setFirstName("Lokesh");
		user.setLastName("Gupta");
		user.setAge("30");
		user.setLastLoggedIn(new Date());
		user.setLocation("New Delhi");
		return user;
	}
}
